package com.ltx.blog_ltx.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UnreadNumMapper {

    //查出用户好友的所有对应好友的未读消息数
    int friendUnreadNum(String sendUser,String acceptUser);
    //添加未读消息数
    int addMessageNum(String sendUser,String acceptUser);
    //已读消息
    int readMessage(String sendUser,String acceptUser);
    //添加未读用户对应关系
    int insertUnread(@Param("id") int id,@Param("userName") String userName,@Param("userdName") String userdName);
    //取消对应关系
    int deleteUnread(@Param("userName") String userName,@Param("userdName") String userdName);
}
